import request from '@/utils/request'

// 查询区县致死性差异性列表
export function listDifference(query) {
  return request({
    url: '/lethalityDifference/queryDataList',
    method: 'get',
    params: query
  })
}

// 查询区县致死性差异性详细
export function getDifference(id) {
  return request({
    url: '/system/difference/' + id,
    method: 'get'
  })
}

// 新增区县致死性差异性
export function addDifference(data) {
  return request({
    url: '/system/difference',
    method: 'post',
    data: data
  })
}

// 修改区县致死性差异性
export function updateDifference(data) {
  return request({
    url: '/system/difference',
    method: 'put',
    data: data
  })
}

// 删除区县致死性差异性
export function delDifference(id) {
  return request({
    url: '/system/difference/' + id,
    method: 'delete'
  })
}
